<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><fmt:message key="appTitle" /></title>
<link rel="stylesheet" type="text/css"
	href='<c:url value="/styles/base.css" />' />
<link rel="stylesheet" type="text/css"
	href='<c:url value="/styles/charte.css" />' />
</head>
<body>

<div id="global"><jsp:include page="header.jsp" /> <jsp:include
	page="menu.jsp" />

<div id="contenu">
<h2>Questionnaire</h2>
<form name="survey" action="answersheet.htm"><c:forEach
	var="question" items="${questions}">
	<b><c:out value="${question.title}" /></b>
	<br />
	<!--c:out value="${question.type }"/-->
	<c:choose>
		<c:when test="${question.type == 'STRING' }">
			<input type="text" name="${question.id }" />
			<br />
		</c:when>
		<c:when test="${question.type == 'TEXT' }">
			<textarea name="${question.id }">
				</textarea>
			<br />
		</c:when>
		<c:when test="${question.type == 'FILE' }">
			<input type="file" name="${question.id }" />
			<br />
		</c:when>
		<c:when test="${question.type == 'SIMPLECHOICE' }">
			<select name="${question.id}">
				<c:forEach var="answer" items="${question.properties}">
					<option value="${answer.id}">${answer.value}</option>
				</c:forEach>
			</select>
		</c:when>



	</c:choose>
</c:forEach></form>
</div>
<jsp:include page="footer.jsp" /></div>
</body>
</html>